﻿#ifndef APPMONITORWIDGET_H
#define APPMONITORWIDGET_H

#include <QDialog>
#include <appmonitor.h>
#include "common.h"
#include "Logger.h"

namespace Ui {
class AppMonitorWidget;
}

class AppMonitorWidget : public QDialog
{
    Q_OBJECT

public:
    explicit AppMonitorWidget(QWidget *parent = 0);
    ~AppMonitorWidget();

    void prepareUpdateAppMointor(AppMonitor &appMonitor);

    void prepareCreateAppMointor();



public slots:

    void onSaveButtonClicked();

    void onDeleteButtonClicked();

    void onSelectCmdClicked();

    void onSelecPidFileClicked();

    void typeChanged(int index);

private slots:
    void on_appNameCombox_currentIndexChanged(const QString &arg1);

private:
    Ui::AppMonitorWidget *ui;

    AppMonitor appMonitor;

};

#endif // APPMONITORWIDGET_H
